package com.example.demo.ThreadTest.ThreadConcurrency;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 现成并发测试
 *
 * @author FF998
 */
@RestController
@RequestMapping("/ThreadConcurrency")
public class ThreadConcurrencyController {

    @Autowired
    ThreadConcurrencyService threadConcurrencyService;

    @GetMapping("/save")
    public String ThreadConcurrencySave() throws InterruptedException {
       return threadConcurrencyService.ThreadConcurrencySave();
    }


}
